package com.cls.business.strategy.impl.notice;

import com.cls.business.entity.Notice;
import com.cls.business.service.INoticeService;
import com.cls.business.strategy.NoticeStrategy;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 普通公告的实现方法
 *
 * @author Administrator
 */
@Component("notice_type_ptgg")
@RequiredArgsConstructor
public class PTGGNoticeImpl implements NoticeStrategy {
    private final INoticeService noticeService;

    @Override
    public void createNotice(Notice notice) {
        noticeService.save(notice);
    }
}
